<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/common_tag.jsp"%>
<%@include file="/common/common_js.jsp"%>
<html>
  <head>
    <title>系统登录</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	
  </head>
  
  <body style="background:url('${ctx }/css/images/bg02.jpg') no-repeat fixed center" >
  <script type="text/javascript">
$(function(){
	  $(".formTable td:even").addClass("textRight"); 
	  if('${msg.type}'=='error'){
		$.messager.alert('错误','${msg.msg}','error');
	  }
	  $(document).keyup(function(event){
		  if(event.keyCode ==13){
			  if(!$(".window-mask").length>0){
			  	$("#btn_submit").trigger("click")
			  }
		  }
		})
	
})
 function loginForm_submit(){
 		if($('#login_form').form('validate')){
 			$('#login_form').submit();
 		}
   }
</script>
  	<div id="longin_window" class="easyui-dialog"  
  	data-options="noheader:true,
				  buttons:'#dlg-buttons'",
	style="width:450px;height:300px">
			<div style="height: 110px;background-color:#ADD8E6;margin-bottom:10px;padding: 0">
			
			</div>
			<form action="${ctx }/login!login.do" method="post" id="login_form">
				<table class="formTable" >
					<tr><td width="35%">账户</td><td width="65%"><input id="user_name" name="user.name" type="text" value="${user.name }" class="easyui-validatebox width170" required="required"></td></tr>
					<tr><td>密码</td><td><input id="user_psw" name= "user.password" type="password" value="${user.password }" class="easyui-validatebox width170" required="required"></td></tr>
					<%--<tr><td>是否记住?</td><td><input type="checkbox" name="rememberMe" value="true"/></td></tr>--%>
				</table>
	   		</form>
	</div>
	
	<div id="dlg-buttons" style="text-align: center">
		<a href="javascript:void(0)" id="btn_submit" iconCls='icon-ok' class="easyui-linkbutton" onclick="loginForm_submit()">登录</a>
		<a href="javascript:void(0)" iconCls='icon-redo' class="easyui-linkbutton" onclick="javascript:$('#login_form').form('rest')">重置</a>
	</div>
  </body>
</html>
